package lab5p2;

/**
 * <p>Title: Rank</p>
 * <p>Description: CS 235 Assignment #1</p>
 * 
 * This is an enumerated type used to represent
 * the thirteen different ranks of playing cards.
 * This enumerated type was chosen over String 
 * objects to represent the ranks because it 
 * reduces problems with implementation.  
 * 
 * @author Nick Brown
 * @email nicholas.brown@my.uwrf.edu
 * @date February 25th 2013
 */

public enum Rank 
{
	ACE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN, JACK, QUEEN, KING;
	
	public String toString() 
	{
		switch (this)
		{
			case ACE:
				return "Ace";
			case TWO:
				return "Two";
			case THREE:
				return "Three";
			case FOUR:
				return "Four";
			case FIVE:
				return "Five";
			case SIX:
				return "Six";
			case SEVEN:
				return "Seven";
			case EIGHT:
				return "Eight";
			case NINE:
				return "Nine";
			case TEN:
				return "Ten";
			case JACK:
				return "Jack";
			case QUEEN:
				return "Queen";
			case KING:
				return "King";
			default:
				return "Unspecified";
		}
	}
}
